package com.mkh.st.admin.api.dto;

import com.mkh.st.common.core.constant.enums.SexEnum;
import com.mkh.st.common.core.constant.enums.UserBusinessTypeEnum;
import com.mkh.st.common.core.constant.enums.UserStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "客户信息保存对象")
@Accessors(chain = true)
public class OtherUserDTO implements Serializable {

	@ApiModelProperty(value="用户id")
	private Long userId;
	/**
	 * 用户账号
	 */
	@ApiModelProperty(value="用户账号")
	@NotBlank(message = "用户账号不能为空!")
	private String phone;
	/**
	 * 用户姓名
	 */
	@NotBlank(message = "用户姓名不能为空!")
	@ApiModelProperty(value="用户姓名")
	private String username;

	@ApiModelProperty(value="用户密码")
	private String password;

	@ApiModelProperty(value="性别(0-默认未知,1-男,2-女)",hidden=true)
	private Integer sex= SexEnum.UNKNOWN.getStatus();

	@ApiModelProperty(value="用户类型【10:平台用户 11:租户用户（12:供应商用户 13:客户）:】")
	@NotNull(message = "用户类型不能为空!")
	private Integer userType;

	@ApiModelProperty(value="业务类型1：采购员,2：销售员,3：财务人员,4：其它,5,分拣",hidden=true)
	private Integer userBusinessType= UserBusinessTypeEnum.OTHER.getCode();

	@ApiModelProperty(value="状态标记：1正常,2锁定,3冻结",hidden=true)
	private Integer normalFlag= UserStatusEnum.NORMAL.getStatus();

	@ApiModelProperty(value="删除标记：0未删除1已删除",hidden=true)
	private Integer delFlag=0;

	@ApiModelProperty(value="不显示标记，0显示1不显示",hidden=true)
	private Integer notShow=1;
}
